#include <ObjectInspectorVisitorChangeBackground.h>
#include <iostream>
ObjectInspectorVisitorChangeBackground::ObjectInspectorVisitorChangeBackground() : ObjectInspectorVisitor()
{
    m_backgroundBrush = QBrush(QColor(65,65,65), Qt::BrushStyle::HorPattern);
}

ObjectInspectorVisitorChangeBackground::~ObjectInspectorVisitorChangeBackground()
{

}

void ObjectInspectorVisitorChangeBackground::apply(QStandardItem *item)
{
    if(item != NULL)
    {
        item->setBackground(m_backgroundBrush);
    }
}

void ObjectInspectorVisitorChangeBackground::setBackgroundBrush(const QBrush &brush)
{
    m_backgroundBrush = brush;
}
